import request from "@/utils/request";

// 权限管理模块Api

// 菜单管理子模块，菜单管理子模块，菜单管理子模块


// 菜单管理数据列表请求
export const getMenuInfoApi = params => {
  return request({
    url: 'permission/menu',
    method: 'GET',
    params: params
  })
}
// 菜单管理 新增 菜单项
export const PostMenuInfoApi = params => {
  return request({
    url: 'permission/menu',
    method: 'POST',
    params: params
  })
}

// 显示状态请求
export const UseMenuInfoApi = data => {
  return request({
    url: `permission/menu/${data.id}/${data.hidden}`,
    method: 'GET',
    data
  })
}
// 查询单个菜单项
export const OneMenuInfoApi = data => {
  return request({
    url: `permission/menu/${data.id}`,
    method: 'GET',
    data
  })
}
// 删除菜单项
export const delMenuInfoApi = data => {
  return request({
    url: `permission/menu/${data.id}`,
    method: 'DELETE',
    data
  })
}
